/**
 * @description 广告
 */
//公用样式 
require('../../assets/css/index.less')
// 当前页面样式
require('./advertisement.less')
// 工具函数 utils
// const dom = require('../../utils/dom')

// DOM加载事件
// dom.ready(function () {
// })
let time = document.querySelector('#time')
let jump = document.querySelector('#jump')
jump.addEventListener('click', function () {
    location.href = 'login.html'
})
let num = 5
let timeId = setInterval(function () {
    num--
    if (num <= 0) {
        clearInterval(timeId)
        location.href = 'login.html'
    }
    time.textContent = num + 'S'
}, 1000)

